package com.kameiqi.erp.domain.model;
import cn.qqxkj.core.common.base.BaseModel;
import cn.qqxkj.core.annotation.agile.Page;
import cn.qqxkj.core.annotation.agile.PageField;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.kameiqi.erp.constant.PermissionMenus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.lang.Boolean;
import java.math.BigInteger;
import java.lang.String;

/**
 * 账户信息实体类
 * @author 小六子
 * @date 2022-04-23 15:17:32
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Table(name = "jsh_account")
@Entity
@Page(cover = true, parentUri = PermissionMenus.INFO)
@ApiModel("结算账户")
public class Account extends BaseModel{
    /** 名称 */
    @ApiModelProperty(value="名称")
    private String name;

    /** 编号 */
    @ApiModelProperty(value="编号")
    private String serialNo;

    /** 期初金额 */
    @ApiModelProperty(value="期初金额")
    @Column(scale=6)
    @PageField(dataScale=6)
    private BigDecimal initialAmount;

    /** 当前余额 */
    @ApiModelProperty(value="当前余额")
    @Column(scale=6)
    @PageField(dataScale=6)
    private BigDecimal currentAmount;

    /** 备注 */
    @ApiModelProperty(value="备注")
    private String remark;

    /** 是否默认 */
    @ApiModelProperty(value="是否默认")
    private Boolean isDefault;

    /** 租户id */
    @ApiModelProperty(value="租户id")
    private Long tenantId;

    /** 删除标记，0未删除，1删除 */
    @ApiModelProperty(value="删除标记",notes="删除标记，0未删除，1删除")
    private String deleteFlag;

}
